﻿using CSCSN.EntitiyModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CSCSN.ViewModels
{
    public class ApplicationTaskVM : EntityViewModel
    {
        [Display(Name = "序号")]
        public string OrderNumber { get; set; }                                                  //序号
        public Guid TaskSiteID { get; set; }                                                     //任务地点ID
        [Display(Name ="地点")]
        public string TaskSiteName { get; set; }
        [Display(Name = "分值")]
        public string Score { get; set; }                                                        //分值
        [Display(Name = "开始时间")]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd HH：mm}", ApplyFormatInEditMode = true)]
        public DateTime BeginTime { get; set; }                                                  //开始时间
        [Display(Name = "时长")]
        public string Duration { get; set; }                                                     //持续时间                      
        public Guid IssuerID { get; set; }                                                       //任务发起人ID
        [Display(Name = "发起人")]
        public string IssuerName { get; set; }
        public bool IsSelected { get; set; }                                                     //是否已选择
        public Guid? ApplicationTaskTypesID { get; set; }                                        //任务类型ID
        public string ApplicationTaskTypeName { get; set; }
        public ApplicationTaskVM()
        {
            IsSelected = false;
        }



    }
}
